package com.study.annotationsample;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.study.injectsample.AnnotationUtils;
import com.study.injectsample.BindView;
import com.study.injectsample.IntentParam;

public class SecondActivity extends AppCompatActivity {

    @IntentParam("from")
    String from;

    @BindView(R.id.tv_textView)
    TextView tv_textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        AnnotationUtils.bind(this);

        tv_textView.setText(from);
    }
}